package com.codebattery.config;

import com.fasterxml.jackson.databind.Module;
import org.springframework.cloud.openfeign.support.PageJacksonModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignDecodeConfiguration {

    /**
     * 解决Page接口不能实例化
     * @return
     */
    @Bean
    public Module pageJacksonModule() {
        return new PageJacksonModule();
    }
}